package hr_project.hr.util;

import java.util.List;

public class pagebean {
	private List list;
	private int currpage;
	private int totalpage;
	private int pageSize=5;
	private int totalRow;
	public List getList() {
		return list;
	}
	public void setList(List list) {
		this.list = list;
	}
	public int getCurrpage() {
		return currpage;
	}
	public void setCurrpage(int currpage) {
		this.currpage = currpage;
	}
	public int getTotalpage() {
		return totalpage;
	}
	public void setTotalpage(int totalpage) {
		this.totalpage = totalpage;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getTotalRow() {
		return totalRow;
	}
	public void setTotalRow(int totalRow) {
		this.totalRow = totalRow;
		totalpage=totalRow%pageSize==0?totalRow/pageSize:totalRow/pageSize+1;
	}
	
	
}
